Skip to main content

All Questions

5votes
6answers
976views

What is the correct OOP relation between complex and real numbers?

On one hand class complex { double real; double imaginary; } it is composition on the other hand class complex : double { double imaginary; } it is inheritance Which one is correct? Why ...
Dims's user avatar
  • 157

close